import org.beaconframework.ext.jdbc.*;
import org.beaconframework.vaadin.util.VaadinContext;

cb = new com.vaadin.ui.ComboBox();
j = new IndexedJdbcContainer();
j.setSql("select * from state");
j.setTransactionManager(VaadinContext.getApplicationContext().getBean("testTxManager"));
j.setDataSource(VaadinContext.getApplicationContext().getBean("testDataSource"));
cb.setItemCaptionPropertyId("NAME");
j.refresh();
cb.setContainerDataSource(j);
return cb;
